﻿using System;
using System.Collections.Generic;
using System.Data.SqlTypes;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace BankSystem
{
    internal class Account
    {
        public string id;
        public int type;
        public int balance;
        public Account(string id, int type, int balance)
        {
            this.id = id;
            this.type = type;
            this.balance = balance;
        }
        public string Print()
        {
            string textType = "";
            string text = "";
            switch (type)
            {
                case 0:
                    textType = "储蓄卡";
                    break;
                case 1:
                    textType = "信用卡";
                    break;
                default:
                    break;
            }
            text = "卡号为" + id + "，类型为" + textType + "，余额为" + balance;
            return text;
        }

        public virtual int maxwithdraw { get; }
    }
}
